package com.jvxb.manage.livable.controller;

import com.jvxb.common.web.RespMsg;
import com.jvxb.manage.livable.service.CommonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author jvxb
 * @since 2022-01-06
 */
@RestController
@RequestMapping("/common/v1")
public class CommonController {

    @Autowired
    CommonService commonService;

    @GetMapping("getDeployCondition")
    public RespMsg getDeployCondition(String dbType) {
        return RespMsg.ok(commonService.getDeployCondition(dbType));
    }

}
